import { reactive } from "vue";

export default function useData() {
  const pageData = reactive({
    columnData: [
      {
        label: "序号",
        prop: "0",
        width: "80px",
        sortable: true
      },
      {
        label: "线路",
        prop: "1",
        width: "120"
      },
      {
        label: "伪装域名",
        prop: "3",
        width: "150"
      },
      {
        label: "域名指向IP",
        prop: "2",
        width: "150"
      },
      {
        label: "变换频率",
        prop: "4",
        width: "120"
      },
      {
        label: "编辑时间",
        prop: "6",
        width: "auto"
      },
      {
        label: "操作",
        prop: "operation",
        width: "auto"
      }
    ]
  });
  const intervalMap = new Map([
    ["0", "无"],
    ["1", "60秒"],
    ["5", "5分钟"],
    ["10", "10分钟"],
    ["30", "30分钟"],
    ["60", "60分钟"]
  ]);
  return {
    pageData,
    intervalMap
  };
}
